package com.jason.thread.sync;

/**
 * @description: 模拟银行账户
 * @author: jason.jia
 * @create: 2019-01-28 17:33
 **/
public class BankAccount {
    private int balance = 100;

    public int getBalance(){
        return balance;
    }

    public void withdraw(int account){
        balance = balance - account;
    }
}
